package com.situ.fly.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.fly.dao.AnswerDao;
import com.situ.fly.entity.Answer;
//方法的实现
@Service
public class AnswerServiceImpl implements AnswerService {

	@Autowired
	private AnswerDao answerDao;
	@Override
	public int add(Answer answer) {
		
		return answerDao.insert(answer);
	}

	@Override
	public List getByQid(Integer qid) {
		
		return answerDao.selectByQid(qid);
	}

}
